package com.wuchao.spring.iocPlus.construct;


import com.wuchao.pojo.Users;

/**
 * @Author wuchao66
 * @Date 2022/9/27 14:35
 * @PackageName:com.wuchao.spring.iocPlus.construct
 * @ClassName: Dao
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class Dao {
    private int age;
    private String name;
    private Users users;
    public void show(){
        System.out.println(age+"\t"+name+"\t"+users.toString());
    }
    //构造注入 不许getset
    public  Dao(){}
    public  Dao(int age,String name,Users users){
        this.age=age;
        this.name=name;
        this.users=users;
    }
}
